package com.wy.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel(value = "公告/通知",description = "公告/通知对象")
public class NoticeBean implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="自增id",name="id",example="1",dataType = "Integer")
    private Integer id;

    @ApiModelProperty(value="标题",name="title",required=true,dataType = "String")
    private String title;

    @ApiModelProperty(value="摘要",name="summary",required=true,dataType = "String")
    private String summary;

    @ApiModelProperty(value="内容",name="content",required=true,dataType = "String")
    private String content;

    @ApiModelProperty(value="类型",name="type",required=true,dataType = "String",example = "0:维修通知，1:水电煤气，2:安全提醒，3:公益服务，4:温馨提示，5:紧急通知，6:物业费通知单，7:其他")
    private String type;

    @ApiModelProperty(value="数据类型",name="ntype",required=true,dataType = "String",example = "1公告2通知")
    private String ntype;

    @ApiModelProperty(value="创建时间",name="createTime",required=true,dataType = "Date",example = "")
    private String createTime;

    @ApiModelProperty(value="发布日期",name="publishTime",required=true,dataType = "Date",example = "")
    private String publishTime;

    @ApiModelProperty(value="失效日期",name="invalidTime",required=true,dataType = "Date",example = "")
    private String invalidTime;

    @ApiModelProperty(value="发布人：登录用户的姓名",name="publishUser",required=true,dataType = "String",example = "admin")
    private String publishUser;

    @ApiModelProperty(value="状态",name="status",required=true,dataType = "String",example = "状态:0待发，1已发，2失效")
    private String status;

    @ApiModelProperty(value="通告接收人:id为选择的小区(type=0)，楼栋(1)，房屋(2)，住户id(3)",name="toUsers",required=true,dataType = "String",example = "{'id':1,'type':'1'},{'id':1,'type':'2'}")
    private String toUsers;

    @ApiModelProperty(value="通告关联图片1:文件名",name="img1",required=false,dataType = "String",example = "")
    private String img1;

    @ApiModelProperty(value="通告关联图片2:文件名",name="img2",required=false,dataType = "String",example = "")
    private String img2;

    @ApiModelProperty(value="通告关联图片3:文件名",name="img3",required=false,dataType = "String",example = "")
    private String img3;

    @ApiModelProperty(value="备注",name="remark",required=false,dataType = "String",example = "")
    private String remark;

    @ApiModelProperty(value="ext1",hidden=true)
    private String ext1;

    @ApiModelProperty(value="ext2",hidden=true)
    private String ext2;

    @ApiModelProperty(value="ext3",hidden=true)
    private String ext3;

    @ApiModelProperty(value="ext4",hidden=true)
    private String ext4;

    private String publishTimeStr;

    private String createTimeStr;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary == null ? null : summary.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getNtype() {
        return ntype;
    }

    public void setNtype(String ntype) {
        this.ntype = ntype == null ? null : ntype.trim();
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getInvalidTime() {
        return invalidTime;
    }

    public void setInvalidTime(String invalidTime) {
        this.invalidTime = invalidTime;
    }

    public String getPublishUser() {
        return publishUser;
    }

    public void setPublishUser(String publishUser) {
        this.publishUser = publishUser == null ? null : publishUser.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getToUsers() {
        return toUsers;
    }

    public void setToUsers(String toUsers) {
        this.toUsers = toUsers;
    }

    public String getImg1() {
        return img1;
    }

    public void setImg1(String img1) {
        this.img1 = img1 == null ? null : img1.trim();
    }

    public String getImg2() {
        return img2;
    }

    public void setImg2(String img2) {
        this.img2 = img2 == null ? null : img2.trim();
    }

    public String getImg3() {
        return img3;
    }

    public void setImg3(String img3) {
        this.img3 = img3 == null ? null : img3.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getExt1() {
        return ext1;
    }

    public void setExt1(String ext1) {
        this.ext1 = ext1 == null ? null : ext1.trim();
    }

    public String getExt2() {
        return ext2;
    }

    public void setExt2(String ext2) {
        this.ext2 = ext2 == null ? null : ext2.trim();
    }

    public String getExt3() {
        return ext3;
    }

    public void setExt3(String ext3) {
        this.ext3 = ext3 == null ? null : ext3.trim();
    }

    public String getExt4() {
        return ext4;
    }

    public void setExt4(String ext4) {
        this.ext4 = ext4 == null ? null : ext4.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPublishTimeStr() {
        return publishTimeStr;
    }

    public void setPublishTimeStr(String publishTimeStr) {
        this.publishTimeStr = publishTimeStr;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }
}